﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DAL;
namespace BLL
{
    public class Unit_BLL
    {
        public static Unit_DAL cls = new Unit_DAL();
        #region[Get-Data]
        public DataTable GetUnit()
        {
            return cls.GetUnit();
        }
        public DataTable GetUnitDetail_Edit(int id)
        {
            return cls.GetUnitDetail_Edit(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertUnit(ET.Unit_ET obj)
        {
            return cls.InsertUnit(obj);
        }
        public static bool UpdateUnit(ET.Unit_ET obj)
        {
            return cls.UpdateUnit(obj);
        }
        public static bool DeleteUnit(int id)
        {
            return cls.DeleteUnit(id);
        }
        #endregion

        #region[Search-Fillter]
        public DataTable Search(string keywords)
        {
            return cls.Search(keywords);
        }
        #endregion
    }
}
